<?php
/**
 * LilFloatTest file
 *
 */
App::uses('View', 'View');
App::uses('AppHelper', 'View/Helper');
App::uses('LilFloatHelper', 'Lil.View/Helper');

/**
 * LilFloatTestHelper class
 *
 */
class LilFloatTestHelper extends LilFloatHelper {

}

/**
 * LilUploadBehaviorTest class
 *
 * @package       lil
 * @subpackage    lil.tests.cases.libs.model.lil_upload
 */
class LilFloatHelperTest extends CakeTestCase {
/**
 * setUp method
 *
 * @access public
 * @return void
 */
	public function setUp() {
		$controller = null;
		$this->View = new View($controller);
		$this->LilFloat = new LilFloatHelper($this->View);
	}
/**
 * tearDown method
 *
 * @access public
 * @return void
 */
	public function tearDown() {
		unset($this->View, $this->LilFloat);
	}
/**
 * testLilUploadEmptyUploadedFile method
 *
 * @access public
 * @return void
 */
	function testLilHelperFormat() {
		Configure::write('LilFloat.decimalSeparator', ',');
		Configure::write('LilFloat.thousandsSeparator', ' ');
		
		$result = $this->LilFloat->format('1234.56', 2);
		$expected = '1 234,56';
		
		$this->assertEqual($result, $expected);
	}
}